package com.sfc.spiderweb.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.sfc.spiderweb.entity.param.PlatformOrdersParam;
import com.sfc.spiderweb.entity.po.adb.PlatformOrders;
import com.sfc.spiderweb.mapper.adb.PlatformOrdersMapper;
import com.sfc.spiderweb.service.LazadaPlatformOrdersService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@DS("slave_2")
@Slf4j
public class LazadaPlatformOrdersServiceImpl implements LazadaPlatformOrdersService {

    @Autowired
    private PlatformOrdersMapper lazadaPlatformOrdersMapper;

    @Override
    public List<PlatformOrders> getList(PlatformOrdersParam param) {
        return lazadaPlatformOrdersMapper.getLazadaList(param);
    }

    @Override
    public List<PlatformOrders> getLazadaOtherList(PlatformOrdersParam param) {
        return lazadaPlatformOrdersMapper.getLazadaOtherList(param);
    }


    @Override
    public List<PlatformOrders> getPlatformList(PlatformOrdersParam param) {
        return lazadaPlatformOrdersMapper.getPlatformList(param);
    }


    @Override
    public List<PlatformOrders> getPlatformOtherList(PlatformOrdersParam param) {
        return lazadaPlatformOrdersMapper.getPlatformOtherList(param);
    }
}
